package com.jic.product.model.entity;

import com.jic.product.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

//import javax.validation.constraints.NotEmpty;
@Data
@NoArgsConstructor
@ApiModel(description = " m_store_virtual_rel ")
public class MStoreVirtualRel extends BaseEntity{
	private static final long serialVersionUID = 1L;
    // @NotEmpty(message = "主键") 
    @ApiModelProperty(notes = "主键")
    private Long id;

    // @NotEmpty(message = "实体类仓库Id") 
    @ApiModelProperty(notes = "实体类仓库Id")
    private Long storeId;

    // @NotEmpty(message = "虚拟类仓库Id") 
    @ApiModelProperty(notes = "虚拟类仓库Id")
    private Long vitualId;

    // @NotEmpty(message = "百分比") 
    @ApiModelProperty(notes = "百分比")
    private BigDecimal percent;

    @ApiModelProperty(notes = "店铺类型")
    private Long storeType;

    //实体仓库关系映射
    private List<MStoreVirtualRel> warehouses;
    //店铺关系映射
    private List<MStoreVirtualRel> shops;
    @ApiModelProperty(notes = "实体店铺名称")
    private String name;

    @ApiModelProperty(notes = "店铺类型:1-线上店铺,2-线下店铺;")
    private Integer shopType;

    @ApiModelProperty(notes = "分配模式:1-独占比例;2-共享比例;")
    private Integer deliveryType;

}
